#ifndef WF_ZOOMWINDOW_H
#define WF_ZOOMWINDOW_H

#include "pf_previewactioninterface.h"
#include "gui_export.h"

/**
 * This action class can handle user events to zoom in a window.
 */
class GUI_EXPORT WF_ZoomWindow : public PF_PreviewActionInterface {
    Q_OBJECT
public:
    WF_ZoomWindow(PF_Container& container,
                        PF_GraphicView& graphicView,
                        bool keepAspectRatio=true);

    ~WF_ZoomWindow() {}

	static QAction* createGUIAction(LX_Define::ActionType /*type*/, QObject* /*parent*/);

    virtual void init(int status=0);
    virtual void trigger();
    virtual void mouseMoveEvent(PF_MouseEvent* e);
    virtual void mousePressEvent(PF_MouseEvent* e);
    virtual void mouseReleaseEvent(PF_MouseEvent* e);
    virtual void updateMouseButtonHints();
    virtual void updateMouseCursor();

protected:
    PF_Vector v1;
    PF_Vector v2;

    bool keepAspectRatio;
};

#endif
